package com.ushine.design.design.b_structural_type.f_flyweight.b_example;

/**
 * 棋子坐标类
 *
 * @author yls
 * <p>
 * 有外部状态的亨元模式
 */
public class Coordinates {

    private int x;
    private int y;

    public Coordinates(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }


}
